package org.jadestudio.dsdown.dao;

import java.lang.management.ManagementFactory;
import java.lang.management.MemoryMXBean;
import java.lang.management.MemoryUsage;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.jadestudio.dsdown.entity.ManageAdminLogin;

import com.ibatis.sqlmap.client.SqlMapClient;

public class TestDao{

	
	private SqlMapClient sqlMapClient;

	public SqlMapClient getSqlMapClient() {
		return sqlMapClient;
	}

	public void setSqlMapClient(SqlMapClient sqlMapClient) {
		this.sqlMapClient = sqlMapClient;
	}

	public List<ManageAdminLogin> getTestDate() throws SQLException {
		Map<String, String> con = new HashMap<String, String>();
		con.put("codeId", "1");
		return (List<ManageAdminLogin>)sqlMapClient.queryForList("test.getTestList",con);
	}
	
	public List getTestDate2()throws SQLException {
		List lt = sqlMapClient.queryForList("test.getTestList2",null);
		return lt;
	}


	
}
